<{* $Id: weblinks_block_random.html 225 2008-03-03 06:33:58Z mikhail.miguel $ *}>
<{* same as weblinks_block_generic.html *}>
<{* hacked by hiro http://ishinomaki.cc/ *}>

<ul style="margin: 2px; padding: 2px; list-style: decimal inside; text-align: left;">
<{foreach item=link from=$block.links}>
  <li style="margin-left: 2px; list-style: square inside; color: #2F5376;">
  <{if $link.show_banner == 1}>
    <{if ($block.show_mode_url == 2) && ($link.url == "") }>
      <{if $link.width > 0 }>
        <img src="<{$link.banner}>" width="<{$link.width}>" border="0" alt="banner" />
      <{else}>
        <img src="<{$link.banner}>" border="0" alt="banner" />
      <{/if}>
    <{else}>
      <{if $block.show_mode_url == 1}>
        <a href="<{$xoops_url}>/modules/<{$block.dirname}>/visit.php?lid=<{$link.id}>" target="_blank">
      <{elseif $block.show_mode_url == 2}>
        <a href="<{$link.url}>" target="_blank">
      <{else}>
        <a href="<{$xoops_url}>/modules/<{$block.dirname}>/singlelink.php?lid=<{$link.id}>">
      <{/if}>
      <{if $link.width > 0 }>
        <img src="<{$link.banner}>" width="<{$link.width}>" border="0" alt="banner" />
      <{else}>
        <img src="<{$link.banner}>" border="0" alt="banner" />
      <{/if}>
      </a>
    <{/if}>
  <{/if}>
  <{if $block.show_title}>
    <{if ($block.show_mode_url == 2) && ($link.url == "") }>
      <{$link.title}>
    <{else}>
      <{if $block.show_mode_url == 1}>
        <a href="<{$xoops_url}>/modules/<{$block.dirname}>/visit.php?lid=<{$link.id}>" target="_blank">
      <{elseif $block.show_mode_url == 2}>
        <a href="<{$link.url}>" target="_blank">
      <{else}>
        <a href="<{$xoops_url}>/modules/<{$block.dirname}>/singlelink.php?lid=<{$link.id}>">
      <{/if}>
      <{$link.title}></a>
    <{/if}>
  <{/if}>
  <{if $block.show_date}>
   (<{$link.date}>) 
  <{/if}>
  <{if $link.show_new == 1}>
    <img src="<{$xoops_url}>/modules/<{$block.dirname}>/images/new.gif" border="0" alt="new" />
  <{/if}>
  <{if $link.show_update == 1}>
    <img src="<{$xoops_url}>/modules/<{$block.dirname}>/images/update.gif" border="0" alt="update" />
  <{/if}>
  <{if $link.show_pop == 1}>
    <img src="<{$xoops_url}>/modules/<{$block.dirname}>/images/pop.gif" border="0" alt="popular" />
  <{/if}>
  <{if $link.show_desc}>
    <br />
    <{$link.description}>
  <{/if}>
  </li>
<{/foreach}>
</ul>
